feat: add support for step-level xray-test-case annotations - #23
Merged
incident-recipient merged 13 commits intoJul 29, 2026
Conversation
incident-recipient
requested changes
Jul 20, 2026
| if (commentTrimmed.startsWith("#")) { | ||
| commentTrimmed = commentTrimmed.substring(1).trim(); | ||
| } | ||
| if (commentTrimmed.startsWith("@")) { |
Collaborator
There was a problem hiding this comment.
I don't understand why we're processing tags the same way we would comments. The tags are in the TaggedTestCase object. It makes more sense to try to cast to this type and get the set of tags than to re-parse it out of the metadata.
atatur
force-pushed
the
feat/parse_step_comments
branch
from
July 21, 2026 20:55
df3e967 to
69d342e
Compare
- implement extraction of step-level `#@xray-test-case` annotations from TestCase step comments. - track and assigns step execution statuses to step-level test cases (PASSED, FAILED, or BLOCKED if a previous step failed). - add "BLOCKED" to the default list of supported Xray execution statuses. - configure antlr4-maven-plugin to correctly locate and compile grammar files from src/test/antlr4. - add comprehensive unit tests to verify both successful scenario runs and partial scenario failures.
atatur
force-pushed
the
feat/parse_step_comments
branch
from
July 21, 2026 21:00
69d342e to
5b19fba
Compare
- add Google Guava dependency to resolve missing 'com.google.common.base' packages in the build environment. - add enum StepStatus, XrayTestTag. - start to use XrayTestTag instead of string values. - move tag constraint checking to a separate private helper method 'verifyTestItemSize'. - remove additional checks from the step tags processing stage.
…yTestResult#examples
- deduplicate identical annotations within a single step using a HashSet. - consolidate test results when multiple steps map to the same Xray test case key. - implement `mergeStepTestItems` to prioritize and retain the most significant execution status (e.g., FAILED over PASSED) for duplicated test keys. - add a unit test to verify the deduplication and status consolidation logic for duplicate step-level comments.
incident-recipient
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#@xray-test-caseannotations from TestCase step comments.